﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HBase {
    public class ControlName :Attribute {
        public string Name { get; set; }
        public ControlName(string name) {
            Name = name;
        }
    }




    public class RoutePrefixAttribute :Attribute {
        public string Prefix { get; set; }
        public RoutePrefixAttribute(string name) {
            Prefix = name;
        }
    }

    public class RouteAttribute :Attribute {
        public string Template { get; set; }
        public RouteAttribute(string name) {
            Template = name;
        }
    }
    public class HttpGet :Attribute {

    }
    public class HttpPost :Attribute {

    }

    public class FromBodyAttribute :Attribute {

    }



    public class AuthorizationFilterAttribute :Attribute {

    }
    public class FormAuthenticationFilterAttribute :AuthorizationFilterAttribute {



    }
    [AttributeUsage(AttributeTargets.Field ,AllowMultiple = false ,Inherited = true)]
    public class MappingNameAttribute :Attribute {
        public MappingNameAttribute(String namesStr) {

            this.names = namesStr.Split(',');
        }

        private String[] names;
        public String[] getNames() {
            return this.names;
        }
    }
}
